package com.example.sys.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author ZhengDing
 * @date 2022/1/28 13:49
 */

public enum BaseEnum {
    NOTHING(0, "NOTHING");

    @EnumValue
    private int code;

    @JsonValue
    private String name;

    private String desc;

    BaseEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    BaseEnum(int code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }
}
